package edu.tjut.tjutcommunity.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Recommendations {

    //推荐id
    @TableId(value = "rid", type = IdType.AUTO)
    private Integer rid;

    //用户id
    private Integer uid;

    //推荐的帖子id
    private Integer pid;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime = new Date();

    //用户反馈
    private Integer feedback;

    //来自的推荐算法
    private Integer deriveAlgorithm;

    //是否已经被获取
    private Integer hasRecommend;
}
